package com.yanmaohu.nikita.data.expression;

import com.yanmaohu.nikita.data.function.FunctionBody;
import com.yanmaohu.nikita.data.function.ParameterList;

/**
 * @author Bright Lee
 */
public final class FunctionExpression extends Expression {

    private final ParameterList parameterList;
    private final FunctionBody functionBody;

    public FunctionExpression(ParameterList parameterList,
                              FunctionBody functionBody) {
        super(parameterList.getBeginIndex(), functionBody.getEndIndex());
        this.parameterList = parameterList;
        this.functionBody = functionBody;
    }

    public ParameterList getParameterList() {
        return parameterList;
    }

    public FunctionBody getStatementList() {
        return functionBody;
    }

}
